#ifndef THREAD_READER_H
#define THREAD_READER_H

#include "Logger.h"
#include <QDebug>
#include <QThread>
#include <QTextStream>
#include <QString>

namespace controller
{
	class ServidorAplicacao;

	class ThreadConsole : public QThread
	{
		Q_OBJECT
		public:
			explicit ThreadConsole(QObject *parent = 0) : QThread(parent){}
			ThreadConsole( ServidorAplicacao *servidor, FILE *in, QObject *parent = 0 );

			virtual ~ThreadConsole();
		protected:
			void run();
		private:
			QTextStream *input;
			ServidorAplicacao *servidor;
	};
}

#endif
